export default{
  data(){
    return {

    }
  },
  methods:{
    hasPermission(code){
      let {currentPagePermission=''} = this.$store.state.permission
      if(currentPagePermission){
        let {permissions=[]} = currentPagePermission
        if(permissions.length){
          return permissions.some((item)=>item===code)
        }
      }
      return false
    }
  }
}